home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-01-02 | 10.5 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| MS-DOS Code Page Info (other/dosCodePage)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Jan 1 19:32:10 1996, modified Mon Jan 1 19:32:10 1996, creator 'MMCC', type ASCII, 9804 bytes "DialogUtils.cp" , at 0x26cc 691 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 44 69 61 6c 6f 67 | 55 74 69 6c 73 2e 63 70 |..Dialog|Utils.cp|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 26 4c 00 | 00 02 b3 ad 0e 2d 8a ad |.....&L.|.....-..|
|00000060| 0e 2d 8a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.-......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 91 5e 00 00 |........|.....^..|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 44 69 61 6c 6f |/*..File|:..Dialo|
|00000090| 67 55 74 69 6c 73 2e 63 | 70 0d 0d 09 43 6f 6e 74 |gUtils.c|p...Cont|
|000000a0| 61 69 6e 73 3a 09 41 75 | 74 6f 2d 73 69 7a 65 64 |ains:.Au|to-sized|
|000000b0| 20 65 72 72 6f 72 20 61 | 6c 65 72 74 20 6d 65 63 | error a|lert mec|
|000000c0| 68 61 6e 69 73 6d 20 61 | 6e 64 20 4d 6f 64 61 6c |hanism a|nd Modal|
|000000d0| 46 69 6c 74 65 72 50 72 | 6f 63 73 0d 09 09 09 09 |FilterPr|ocs.....|
|000000e0| 77 68 69 63 68 20 63 6f | 72 72 65 63 74 6c 79 20 |which co|rrectly |
|000000f0| 68 61 6e 64 6c 65 20 65 | 76 65 6e 74 73 2e 0d 09 |handle e|vents...|
|00000100| 09 09 09 0d 09 57 72 69 | 74 74 65 6e 20 62 79 3a |.....Wri|tten by:|
|00000110| 20 44 61 76 65 20 46 61 | 6c 6b 65 6e 62 75 72 67 | Dave Fa|lkenburg|
|00000120| 0d 0d 09 43 6f 70 79 72 | 69 67 68 74 3a 09 a9 20 |...Copyr|ight:.. |
|00000130| 31 39 39 33 2d 31 39 39 | 35 20 62 79 20 44 61 76 |1993-199|5 by Dav|
|00000140| 65 20 46 61 6c 6b 65 6e | 62 75 72 67 2c 20 61 6c |e Falken|burg, al|
|00000150| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|00000160| 64 2e 0d 0d 09 43 68 61 | 6e 67 65 20 48 69 73 74 |d....Cha|nge Hist|
|00000170| 6f 72 79 20 28 6d 6f 73 | 74 20 72 65 63 65 6e 74 |ory (mos|t recent|
|00000180| 20 66 69 72 73 74 29 3a | 0d 09 20 0d 09 09 20 3c | first):|.. ... <|
|00000190| 38 3e 09 20 31 2f 32 30 | 2f 39 35 09 44 52 46 09 |8>. 1/20|/95.DRF.|
|000001a0| 09 47 61 72 79 20 50 6f | 77 65 6c 6c 20 69 73 20 |.Gary Po|well is |
|000001b0| 61 20 62 75 67 20 66 69 | 6e 64 69 6e 67 20 67 6f |a bug fi|nding go|
|000001c0| 64 2e 20 46 69 78 20 61 | 6e 20 75 6e 69 74 69 61 |d. Fix a|n unitia|
|000001d0| 6c 69 7a 65 64 20 76 61 | 72 69 61 62 6c 65 0d 09 |lized va|riable..|
|000001e0| 09 09 09 09 09 09 09 09 | 70 72 6f 62 6c 65 6d 20 |........|problem |
|000001f0| 69 6e 20 45 72 72 6f 72 | 41 6c 65 72 74 2e 0d 09 |in Error|Alert...|
|00000200| 09 20 3c 37 3e 09 20 20 | 31 2f 33 2f 39 35 09 44 |. <7>. |1/3/95.D|
|00000210| 52 46 09 09 47 61 76 65 | 20 55 50 50 73 20 62 65 |RF..Gave| UPPs be|
|00000220| 74 74 65 72 20 6e 61 6d | 65 73 2e 20 41 6c 73 6f |tter nam|es. Also|
|00000230| 20 6d 6f 76 65 64 20 53 | 74 61 6e 64 61 72 64 43 | moved S|tandardC|
|00000240| 6c 6f 73 65 44 6f 63 75 | 6d 65 6e 74 20 74 6f 0d |loseDocu|ment to.|
|00000250| 09 09 09 09 09 09 09 09 | 09 44 6f 63 75 6d 65 6e |........|.Documen|
|00000260| 74 2e 68 2e 0d 09 09 20 | 3c 36 3e 09 31 31 2f 32 |t.h.... |<6>.11/2|
|00000270| 33 2f 39 34 09 44 52 46 | 09 09 41 64 64 20 54 6f |3/94.DRF|..Add To|
|00000280| 67 67 6c 65 43 68 65 63 | 6b 42 6f 78 2c 20 61 20 |ggleChec|kBox, a |
|00000290| 6e 69 63 65 20 6c 69 74 | 74 6c 65 20 64 69 61 6c |nice lit|tle dial|
|000002a0| 6f 67 20 69 74 65 6d 20 | 75 74 69 6c 69 74 79 2e |og item |utility.|
|000002b0| 0d 09 09 20 3c 35 3e 09 | 31 31 2f 31 36 2f 39 34 |... <5>.|11/16/94|
|000002c0| 09 44 52 46 09 09 41 64 | 64 65 64 20 65 78 70 6c |.DRF..Ad|ded expl|
|000002d0| 69 63 69 74 20 23 69 6e | 63 6c 75 64 65 20 3c 53 |icit #in|clude <S|
|000002e0| 65 67 4c 6f 61 64 2e 68 | 3e 20 66 6f 72 20 6c 61 |egLoad.h|> for la|
|000002f0| 74 65 73 74 20 75 6e 69 | 76 65 72 73 61 6c 0d 09 |test uni|versal..|
|00000300| 09 09 09 09 09 09 09 09 | 68 65 61 64 65 72 73 2e |........|headers.|
|00000310| 20 41 6c 73 6f 20 61 64 | 64 65 64 20 63 61 73 74 | Also ad|ded cast|
|00000320| 20 74 6f 20 6b 65 65 70 | 20 4d 50 57 20 43 46 72 | to keep| MPW CFr|
|00000330| 6f 6e 74 20 68 61 70 70 | 69 65 72 2e 0d 09 09 20 |ont happ|ier.... |
|00000340| 3c 34 3e 09 31 31 2f 31 | 36 2f 39 34 09 44 52 46 |<4>.11/1|6/94.DRF|
|00000350| 09 09 41 64 64 20 53 74 | 64 46 69 6c 74 65 72 50 |..Add St|dFilterP|
|00000360| 72 6f 63 20 66 6f 72 20 | 54 48 49 4e 4b 20 43 2e |roc for |THINK C.|
|00000370| 0d 09 09 20 3c 33 3e 09 | 20 39 2f 32 37 2f 39 34 |... <3>.| 9/27/94|
|00000380| 09 44 52 46 09 20 09 41 | 70 70 4c 69 62 2e 68 20 |.DRF. .A|ppLib.h |
|00000390| 69 73 20 6e 6f 77 20 53 | 70 72 6f 63 6b 65 74 2e |is now S|procket.|
|000003a0| 68 0d 09 09 20 3c 32 3e | 09 20 20 39 2f 39 2f 39 |h... <2>|. 9/9/9|
|000003b0| 34 09 44 52 46 09 09 52 | 65 6f 72 64 65 72 65 64 |4.DRF..R|eordered|
|000003c0| 20 68 65 61 64 65 72 73 | 20 61 6e 64 20 72 65 6d | headers| and rem|
|000003d0| 6f 76 65 64 20 72 65 64 | 75 6e 64 61 6e 74 20 23 |oved red|undant #|
|000003e0| 69 6e 63 6c 75 64 65 73 | 2e 0d 20 2a 2f 0d 0d 23 |includes|.. */..#|
|000003f0| 69 6e 63 6c 75 64 65 20 | 22 53 70 72 6f 63 6b 65 |include |"Sprocke|
|00000400| 74 2e 68 22 0d 0d 23 69 | 6e 63 6c 75 64 65 20 3c |t.h"..#i|nclude <|
|00000410| 46 6f 6e 74 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |Fonts.h>|.#includ|
|00000420| 65 20 3c 52 65 73 6f 75 | 72 63 65 73 2e 68 3e 0d |e <Resou|rces.h>.|
|00000430| 23 69 6e 63 6c 75 64 65 | 20 3c 54 65 78 74 55 74 |#include| <TextUt|
|00000440| 69 6c 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ils.h>.#|include |
|00000450| 3c 54 68 72 65 61 64 73 | 2e 68 3e 09 09 2f 2f 09 |<Threads|.h>..//.|
|00000460| 46 6f 72 20 59 69 65 6c | 64 54 6f 41 6e 79 54 68 |For Yiel|dToAnyTh|
|00000470| 72 65 61 64 28 29 0d 23 | 69 6e 63 6c 75 64 65 20 |read().#|include |
|00000480| 3c 53 74 61 6e 64 61 72 | 64 46 69 6c 65 2e 68 3e |<Standar|dFile.h>|
|00000490| 09 2f 2f 09 46 6f 72 20 | 4d 6f 64 61 6c 46 69 6c |.//.For |ModalFil|
|000004a0| 74 65 72 59 44 50 72 6f | 63 50 74 72 0d 23 69 6e |terYDPro|cPtr.#in|
|000004b0| 63 6c 75 64 65 20 3c 53 | 65 67 4c 6f 61 64 2e 68 |clude <S|egLoad.h|
|000004c0| 3e 09 09 2f 2f 09 46 6f | 72 20 45 78 69 74 54 6f |>..//.Fo|r ExitTo|
|000004d0| 53 68 65 6c 6c 28 29 0d | 0d 2f 2f 09 53 6f 6d 65 |Shell().|.//.Some|
|000004e0| 20 74 79 70 65 73 20 77 | 68 69 63 68 20 73 68 6f | types w|hich sho|
|000004f0| 75 6c 64 20 70 72 6f 62 | 61 62 6c 79 20 62 65 20 |uld prob|ably be |
|00000500| 64 65 66 69 6e 65 64 20 | 69 6e 20 3c 44 69 61 6c |defined |in <Dial|
|00000510| 6f 67 73 2e 68 3e 0d 2f | 2f 09 4e 4f 54 45 3a 20 |ogs.h>./|/.NOTE: |
|00000520| 54 68 65 73 65 20 6d 75 | 73 74 20 62 65 20 61 6c |These mu|st be al|
|00000530| 69 67 6e 65 64 20 6f 6e | 20 32 2d 62 79 74 65 20 |igned on| 2-byte |
|00000540| 62 6f 75 6e 64 61 72 69 | 65 73 0d 0d 23 69 66 20 |boundari|es..#if |
|00000550| 50 52 41 47 4d 41 5f 41 | 4c 49 47 4e 5f 53 55 50 |PRAGMA_A|LIGN_SUP|
|00000560| 50 4f 52 54 45 44 0d 23 | 70 72 61 67 6d 61 09 70 |PORTED.#|pragma.p|
|00000570| 75 73 68 0d 23 70 72 61 | 67 6d 61 20 6f 70 74 69 |ush.#pra|gma opti|
|00000580| 6f 6e 73 20 61 6c 69 67 | 6e 3d 6d 61 63 36 38 6b |ons alig|n=mac68k|
|00000590| 0d 23 65 6e 64 69 66 0d | 0d 73 74 72 75 63 74 20 |.#endif.|.struct |
|000005a0| 44 69 61 6c 6f 67 49 74 | 65 6d 0d 09 7b 0d 09 6c |DialogIt|em..{..l|
|000005b0| 6f 6e 67 09 75 73 65 64 | 42 79 44 69 61 6c 6f 67 |ong.used|ByDialog|
|000005c0| 4d 61 6e 61 67 65 72 3b | 0d 09 52 65 63 74 09 62 |Manager;|..Rect.b|
|000005d0| 6f 75 6e 64 73 52 65 63 | 74 3b 0d 09 63 68 61 72 |oundsRec|t;..char|
|000005e0| 09 74 79 70 65 3b 0d 09 | 63 68 61 72 09 6c 65 6e |.type;..|char.len|
|000005f0| 67 74 68 3b 0d 09 7d 3b | 0d 0d 73 74 72 75 63 74 |gth;..};|..struct|
|00000600| 20 44 69 61 6c 6f 67 49 | 74 65 6d 4c 69 73 74 09 | DialogI|temList.|
|00000610| 09 09 2f 2f 09 61 2e 6b | 2e 61 2e 20 61 20 27 44 |..//.a.k|.a. a 'D|
|00000620| 49 54 4c 27 0d 09 7b 0d | 09 73 68 6f 72 74 09 09 |ITL'..{.|.short..|
|00000630| 63 6f 75 6e 74 3b 0d 09 | 44 69 61 6c 6f 67 49 74 |count;..|DialogIt|
|00000640| 65 6d 09 66 69 72 73 74 | 49 74 65 6d 5b 31 5d 3b |em.first|Item[1];|
|00000650| 0d 09 7d 3b 0d 0d 2f 2f | 09 52 65 73 74 6f 72 65 |..};..//|.Restore|
|00000660| 20 64 65 66 61 75 6c 74 | 20 61 6c 69 67 6e 6d 65 | default| alignme|
|00000670| 6e 74 0d 0d 23 69 66 20 | 50 52 41 47 4d 41 5f 41 |nt..#if |PRAGMA_A|
|00000680| 4c 49 47 4e 5f 53 55 50 | 50 4f 52 54 45 44 0d 23 |LIGN_SUP|PORTED.#|
|00000690| 70 72 61 67 6d 61 20 70 | 6f 70 0d 23 65 6e 64 69 |pragma p|op.#endi|
|000006a0| 66 0d 0d 0d 74 79 70 65 | 64 65 66 09 44 69 61 6c |f...type|def.Dial|
|000006b0| 6f 67 49 74 65 6d 09 09 | 2a 44 69 61 6c 6f 67 49 |ogItem..|*DialogI|
|000006c0| 74 65 6d 50 74 72 3b 0d | 74 79 70 65 64 65 66 09 |temPtr;.|typedef.|
|000006d0| 44 69 61 6c 6f 67 49 74 | 65 6d 4c 69 73 74 09 2a |DialogIt|emList.*|
|000006e0| 2a 44 69 61 6c 6f 67 49 | 74 65 6d 4c 69 73 74 48 |*DialogI|temListH|
|000006f0| 61 6e 64 6c 65 3b 0d 74 | 79 70 65 64 65 66 09 44 |andle;.t|ypedef.D|
|00000700| 69 61 6c 6f 67 54 65 6d | 70 6c 61 74 65 09 2a 2a |ialogTem|plate.**|
|00000710| 44 69 61 6c 6f 67 54 65 | 6d 70 6c 61 74 65 48 61 |DialogTe|mplateHa|
|00000720| 6e 64 6c 65 3b 0d 0d 2f | 2a 0d 23 69 66 6e 64 65 |ndle;../|*.#ifnde|
|00000730| 66 09 70 6f 77 65 72 63 | 0d 23 69 66 64 65 66 09 |f.powerc|.#ifdef.|
|00000740| 5f 5f 53 43 5f 5f 0d 0d | 65 78 74 65 72 6e 20 70 |__SC__..|extern p|
|00000750| 61 73 63 61 6c 20 4f 53 | 45 72 72 20 47 65 74 53 |ascal OS|Err GetS|
|00000760| 74 64 46 69 6c 74 65 72 | 50 72 6f 63 28 4d 6f 64 |tdFilter|Proc(Mod|
|00000770| 61 6c 46 69 6c 74 65 72 | 55 50 50 20 2a 74 68 65 |alFilter|UPP *the|
|00000780| 50 72 6f 63 29 0d 20 54 | 48 52 45 45 57 4f 52 44 |Proc). T|HREEWORD|
|00000790| 49 4e 4c 49 4e 45 28 30 | 78 33 30 33 43 2c 20 30 |INLINE(0|x303C, 0|
|000007a0| 78 30 32 30 33 2c 20 30 | 78 41 41 36 38 29 3b 0d |x0203, 0|xAA68);.|
|000007b0| 0d 70 61 73 63 61 6c 20 | 42 6f 6f 6c 65 61 6e 0d |.pascal |Boolean.|
|000007c0| 53 74 64 46 69 6c 74 65 | 72 50 72 6f 63 28 44 69 |StdFilte|rProc(Di|
|000007d0| 61 6c 6f 67 50 74 72 20 | 74 68 65 44 69 61 6c 6f |alogPtr |theDialo|
|000007e0| 67 2c 20 45 76 65 6e 74 | 52 65 63 6f 72 64 2a 20 |g, Event|Record* |
|000007f0| 61 6e 45 76 65 6e 74 2c | 20 73 68 6f 72 74 2a 20 |anEvent,| short* |
|00000800| 69 74 65 6d 48 69 74 29 | 0d 09 7b 0d 09 4d 6f 64 |itemHit)|..{..Mod|
|00000810| 61 6c 46 69 6c 74 65 72 | 55 50 50 09 66 69 6c 74 |alFilter|UPP.filt|
|00000820| 65 72 55 50 50 3b 0d 0d | 09 2f 2f 09 44 69 61 6c |erUPP;..|.//.Dial|
|00000830| 6f 67 73 2e 68 0d 09 0d | 09 28 76 6f 69 64 29 20 |ogs.h...|.(void) |
|00000840| 47 65 74 53 74 64 46 69 | 6c 74 65 72 50 72 6f 63 |GetStdFi|lterProc|
|00000850| 28 26 66 69 6c 74 65 72 | 55 50 50 29 3b 0d 0d 09 |(&filter|UPP);...|
|00000860| 72 65 74 75 72 6e 09 43 | 61 6c 6c 4d 6f 64 61 6c |return.C|allModal|
|00000870| 46 69 6c 74 65 72 50 72 | 6f 63 28 66 69 6c 74 65 |FilterPr|oc(filte|
|00000880| 72 55 50 50 2c 74 68 65 | 44 69 61 6c 6f 67 2c 61 |rUPP,the|Dialog,a|
|00000890| 6e 45 76 65 6e 74 2c 69 | 74 65 6d 48 69 74 29 3b |nEvent,i|temHit);|
|000008a0| 0d 09 7d 0d 0d 23 65 6e | 64 69 66 0d 23 65 6e 64 |..}..#en|dif.#end|
|000008b0| 69 66 0d 2a 2f 0d 0d 2f | 2f 09 70 72 69 76 61 74 |if.*/../|/.privat|
|000008c0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 50 72 6f 74 6f |e functi|on Proto|
|000008d0| 74 79 70 65 73 0d 0d 70 | 61 73 63 61 6c 20 42 6f |types..p|ascal Bo|
|000008e0| 6f 6c 65 61 6e 09 53 74 | 61 6e 64 61 72 64 44 69 |olean.St|andardDi|
|000008f0| 61 6c 6f 67 46 69 6c 74 | 65 72 50 72 6f 63 28 44 |alogFilt|erProc(D|
|00000900| 69 61 6c 6f 67 52 65 66 | 20 74 68 65 44 69 61 6c |ialogRef| theDial|
|00000910| 6f 67 2c 20 45 76 65 6e | 74 52 65 63 6f 72 64 20 |og, Even|tRecord |
|00000920| 2a 20 61 6e 45 76 65 6e | 74 2c 20 73 68 6f 72 74 |* anEven|t, short|
|00000930| 20 2a 20 69 74 65 6d 48 | 69 74 29 3b 0d 73 74 61 | * itemH|it);.sta|
|00000940| 74 69 63 09 70 61 73 63 | 61 6c 20 42 6f 6f 6c 65 |tic.pasc|al Boole|
|00000950| 61 6e 09 53 74 61 6e 64 | 61 72 64 44 69 61 6c 6f |an.Stand|ardDialo|
|00000960| 67 46 69 6c 74 65 72 59 | 44 50 72 6f 63 28 44 69 |gFilterY|DProc(Di|
|00000970| 61 6c 6f 67 52 65 66 20 | 74 68 65 44 69 61 6c 6f |alogRef |theDialo|
|00000980| 67 2c 20 45 76 65 6e 74 | 52 65 63 6f 72 64 20 2a |g, Event|Record *|
|00000990| 20 61 6e 45 76 65 6e 74 | 2c 20 73 68 6f 72 74 20 | anEvent|, short |
|000009a0| 2a 20 69 74 65 6d 48 69 | 74 2c 20 76 6f 69 64 20 |* itemHi|t, void |
|000009b0| 2a 20 79 6f 75 72 44 61 | 74 61 29 3b 0d 73 74 61 |* yourDa|ta);.sta|
|000009c0| 74 69 63 09 70 61 73 63 | 61 6c 20 42 6f 6f 6c 65 |tic.pasc|al Boole|
|000009d0| 61 6e 09 53 74 61 6e 64 | 61 72 64 43 6c 6f 73 65 |an.Stand|ardClose|
|000009e0| 44 69 61 6c 6f 67 46 69 | 6c 74 65 72 50 72 6f 63 |DialogFi|lterProc|
|000009f0| 28 44 69 61 6c 6f 67 52 | 65 66 20 74 68 65 44 69 |(DialogR|ef theDi|
|00000a00| 61 6c 6f 67 2c 20 45 76 | 65 6e 74 52 65 63 6f 72 |alog, Ev|entRecor|
|00000a10| 64 20 2a 20 61 6e 45 76 | 65 6e 74 2c 20 73 68 6f |d * anEv|ent, sho|
|00000a20| 72 74 20 2a 20 69 74 65 | 6d 48 69 74 29 3b 0d 73 |rt * ite|mHit);.s|
|00000a30| 74 61 74 69 63 09 42 6f | 6f 6c 65 61 6e 09 09 09 |tatic.Bo|olean...|
|00000a40| 46 69 6c 74 65 72 50 72 | 6f 63 43 6f 6d 6d 6f 6e |FilterPr|ocCommon|
|00000a50| 28 44 69 61 6c 6f 67 52 | 65 66 20 74 68 65 44 69 |(DialogR|ef theDi|
|00000a60| 61 6c 6f 67 2c 20 45 76 | 65 6e 74 52 65 63 6f 72 |alog, Ev|entRecor|
|00000a70| 64 20 2a 20 61 6e 45 76 | 65 6e 74 2c 20 73 68 6f |d * anEv|ent, sho|
|00000a80| 72 74 20 2a 20 69 74 65 | 6d 48 69 74 29 3b 0d 0d |rt * ite|mHit);..|
|00000a90| 0d 0d 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |..//////|////////|
|00000aa0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000ab0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000ac0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 0d 2f 2f |////////|/////.//|
|00000ad0| 0d 2f 2f 09 53 74 61 6e | 64 61 72 64 41 6c 65 72 |.//.Stan|dardAler|
|00000ae0| 74 0d 2f 2f 0d 2f 2f 09 | 41 6e 20 61 6c 74 65 72 |t.//.//.|An alter|
|00000af0| 6e 61 74 69 76 65 20 74 | 6f 20 41 6c 65 72 74 28 |native t|o Alert(|
|00000b00| 29 20 77 68 69 63 68 20 | 75 73 65 73 20 74 68 65 |) which |uses the|
|00000b10| 20 65 78 74 65 6e 64 65 | 64 0d 2f 2f 09 44 69 61 | extende|d.//.Dia|
|00000b20| 6c 6f 67 20 4d 61 6e 61 | 67 65 72 20 63 61 70 61 |log Mana|ger capa|
|00000b30| 62 69 6c 69 74 69 65 73 | 2e 0d 2f 2f 0d 2f 2f 09 |bilities|..//.//.|
|00000b40| 49 d5 6d 20 6e 6f 74 20 | 73 75 72 65 20 77 65 20 |I.m not |sure we |
|00000b50| 72 65 61 6c 6c 79 20 6e | 65 65 64 20 74 68 69 73 |really n|eed this|
|00000b60| 20 63 61 6c 6c 2c 20 62 | 75 74 20 69 74 20 73 65 | call, b|ut it se|
|00000b70| 65 6d 73 0d 2f 2f 09 74 | 6f 20 64 6f 20 74 68 65 |ems.//.t|o do the|
|00000b80| 20 74 72 69 63 6b 20 6a | 75 73 74 20 66 69 6e 65 | trick j|ust fine|
|00000b90| 2e 0d 0d 73 68 6f 72 74 | 0d 53 74 61 6e 64 61 72 |...short|.Standar|
|00000ba0| 64 41 6c 65 72 74 28 09 | 73 68 6f 72 74 20 64 6c |dAlert(.|short dl|
|00000bb0| 6f 67 49 44 2c 0d 09 09 | 09 09 73 68 6f 72 74 20 |ogID,...|..short |
|00000bc0| 64 65 66 61 75 6c 74 49 | 74 65 6d 2c 09 09 09 09 |defaultI|tem,....|
|00000bd0| 2f 2a 20 3d 20 6f 6b 20 | 2a 2f 0d 09 09 09 09 73 |/* = ok |*/.....s|
|00000be0| 68 6f 72 74 20 63 61 6e | 63 65 6c 49 74 65 6d 2c |hort can|celItem,|
|00000bf0| 09 09 09 09 2f 2a 20 3d | 20 30 20 2a 2f 0d 09 09 |..../* =| 0 */...|
|00000c00| 09 09 4d 6f 64 61 6c 46 | 69 6c 74 65 72 55 50 50 |..ModalF|ilterUPP|
|00000c10| 20 63 75 73 74 6f 6d 46 | 69 6c 74 65 72 55 50 50 | customF|ilterUPP|
|00000c20| 09 2f 2a 20 3d 20 6e 69 | 6c 20 2a 2f 29 0d 09 7b |./* = ni|l */)..{|
|00000c30| 0d 09 44 69 61 6c 6f 67 | 52 65 66 09 09 74 68 65 |..Dialog|Ref..the|
|00000c40| 44 69 61 6c 6f 67 3b 0d | 09 73 68 6f 72 74 09 09 |Dialog;.|.short..|
|00000c50| 09 69 74 65 6d 48 69 74 | 20 3d 20 30 3b 0d 09 4d |.itemHit| = 0;..M|
|00000c60| 6f 64 61 6c 46 69 6c 74 | 65 72 55 50 50 09 66 69 |odalFilt|erUPP.fi|
|00000c70| 6c 74 65 72 54 6f 55 73 | 65 3b 0d 09 0d 09 54 57 |lterToUs|e;....TW|
|00000c80| 69 6e 64 6f 77 3a 3a 45 | 6e 74 65 72 4d 6f 64 61 |indow::E|nterModa|
|00000c90| 6c 53 74 61 74 65 28 29 | 3b 0d 0d 09 74 68 65 44 |lState()|;...theD|
|00000ca0| 69 61 6c 6f 67 20 3d 20 | 47 65 74 4e 65 77 44 69 |ialog = |GetNewDi|
|00000cb0| 61 6c 6f 67 28 64 6c 6f | 67 49 44 2c 6e 69 6c 2c |alog(dlo|gID,nil,|
|00000cc0| 28 57 69 6e 64 6f 77 52 | 65 66 29 20 2d 31 29 3b |(WindowR|ef) -1);|
|00000cd0| 0d 09 69 66 20 28 64 65 | 66 61 75 6c 74 49 74 65 |..if (de|faultIte|
|00000ce0| 6d 29 0d 09 09 53 65 74 | 44 69 61 6c 6f 67 44 65 |m)...Set|DialogDe|
|00000cf0| 66 61 75 6c 74 49 74 65 | 6d 28 74 68 65 44 69 61 |faultIte|m(theDia|
|00000d00| 6c 6f 67 2c 64 65 66 61 | 75 6c 74 49 74 65 6d 29 |log,defa|ultItem)|
|00000d10| 3b 0d 09 69 66 20 28 63 | 61 6e 63 65 6c 49 74 65 |;..if (c|ancelIte|
|00000d20| 6d 29 0d 09 09 53 65 74 | 44 69 61 6c 6f 67 43 61 |m)...Set|DialogCa|
|00000d30| 6e 63 65 6c 49 74 65 6d | 28 74 68 65 44 69 61 6c |ncelItem|(theDial|
|00000d40| 6f 67 2c 63 61 6e 63 65 | 6c 49 74 65 6d 29 3b 0d |og,cance|lItem);.|
|00000d50| 0d 09 69 66 20 28 63 75 | 73 74 6f 6d 46 69 6c 74 |..if (cu|stomFilt|
|00000d60| 65 72 55 50 50 29 0d 09 | 09 66 69 6c 74 65 72 54 |erUPP)..|.filterT|
|00000d70| 6f 55 73 65 20 3d 20 63 | 75 73 74 6f 6d 46 69 6c |oUse = c|ustomFil|
|00000d80| 74 65 72 55 50 50 3b 0d | 09 65 6c 73 65 0d 09 09 |terUPP;.|.else...|
|00000d90| 66 69 6c 74 65 72 54 6f | 55 73 65 20 3d 20 53 74 |filterTo|Use = St|
|00000da0| 61 6e 64 61 72 64 44 69 | 61 6c 6f 67 46 69 6c 74 |andardDi|alogFilt|
|00000db0| 65 72 55 50 50 3b 0d 0d | 09 64 6f 0d 09 09 4d 6f |erUPP;..|.do...Mo|
|00000dc0| 64 61 6c 44 69 61 6c 6f | 67 28 66 69 6c 74 65 72 |dalDialo|g(filter|
|00000dd0| 54 6f 55 73 65 2c 26 69 | 74 65 6d 48 69 74 29 3b |ToUse,&i|temHit);|
|00000de0| 0d 09 77 68 69 6c 65 20 | 28 69 74 65 6d 48 69 74 |..while |(itemHit|
|00000df0| 20 3d 3d 20 30 29 3b 0d | 09 0d 09 44 69 73 70 6f | == 0);.|...Dispo|
|00000e00| 73 65 44 69 61 6c 6f 67 | 28 74 68 65 44 69 61 6c |seDialog|(theDial|
|00000e10| 6f 67 29 3b 0d 0d 09 54 | 57 69 6e 64 6f 77 3a 3a |og);...T|Window::|
|00000e20| 45 78 69 74 4d 6f 64 61 | 6c 53 74 61 74 65 28 29 |ExitModa|lState()|
|00000e30| 3b 0d 0d 09 72 65 74 75 | 72 6e 20 69 74 65 6d 48 |;...retu|rn itemH|
|00000e40| 69 74 3b 0d 09 7d 0d 0d | 0d 2f 2f 2f 2f 2f 2f 2f |it;..}..|.///////|
|00000e50| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000e60| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000e70| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000e80| 2f 2f 2f 2f 0d 2f 2f 0d | 2f 2f 09 45 72 72 6f 72 |////.//.|//.Error|
|00000e90| 41 6c 65 72 74 0d 2f 2f | 0d 2f 2f 09 41 20 6e 69 |Alert.//|.//.A ni|
|00000ea0| 63 65 20 65 72 72 6f 72 | 20 72 65 70 6f 72 74 69 |ce error| reporti|
|00000eb0| 6e 67 20 72 6f 75 74 69 | 6e 65 20 77 68 69 63 68 |ng routi|ne which|
|00000ec0| 20 70 72 65 73 65 6e 74 | 73 20 61 6e 0d 2f 2f 09 | present|s an.//.|
|00000ed0| 61 75 74 6f 2d 73 69 7a | 65 64 20 61 6c 65 72 74 |auto-siz|ed alert|
|00000ee0| 20 62 6f 78 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 | box con|taining |
|00000ef0| 74 68 65 20 73 75 70 70 | 6c 69 65 64 20 74 65 78 |the supp|lied tex|
|00000f00| 74 2e 0d 2f 2f 0d 2f 2f | 09 4e 4f 54 45 3a 09 54 |t..//.//|.NOTE:.T|
|00000f10| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 41 53 53 55 |his rout|ine ASSU|
|00000f20| 4d 45 53 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |MES the |followin|
|00000f30| 67 20 27 44 49 54 4c 27 | 0d 2f 2f 09 09 09 73 74 |g 'DITL'|.//...st|
|00000f40| 72 75 63 74 75 72 65 3a | 0d 2f 2f 0d 2f 2f 09 09 |ructure:|.//.//..|
|00000f50| 09 69 74 65 6d 20 23 31 | 20 3a 20 61 6e 20 d2 4f |.item #1| : an .O|
|00000f60| 4b d3 20 62 75 74 74 6f | 6e 0d 2f 2f 09 09 09 69 |K. butto|n.//...i|
|00000f70| 74 65 6d 20 23 32 20 3a | 20 61 20 73 74 61 74 69 |tem #2 :| a stati|
|00000f80| 63 20 74 65 78 74 20 69 | 74 65 6d 2c 20 73 6f 6d |c text i|tem, som|
|00000f90| 65 77 68 65 72 65 20 61 | 62 6f 76 65 20 23 31 0d |ewhere a|bove #1.|
|00000fa0| 2f 2f 0d 2f 2f 09 4e 4f | 54 45 3a 09 57 65 20 70 |//.//.NO|TE:.We p|
|00000fb0| 72 6f 62 61 62 6c 79 20 | 6e 65 65 64 20 74 6f 20 |robably |need to |
|00000fc0| 77 6f 72 72 79 20 6d 6f | 72 65 20 61 62 6f 75 74 |worry mo|re about|
|00000fd0| 20 6c 6f 77 0d 2f 2f 09 | 09 09 6d 65 6d 6f 72 79 | low.//.|..memory|
|00000fe0| 20 63 6f 6e 64 69 74 69 | 6f 6e 73 2d 2d 20 74 68 | conditi|ons-- th|
|00000ff0| 69 73 20 63 61 6e 20 70 | 72 6f 62 61 62 6c 79 0d |is can p|robably.|
|00001000| 2f 2f 09 09 09 62 65 20 | 68 61 6e 64 6c 65 64 20 |//...be |handled |
|00001010| 62 79 20 61 20 63 75 73 | 74 6f 6d 20 47 72 6f 77 |by a cus|tom Grow|
|00001020| 5a 6f 6e 65 50 72 6f 63 | 20 61 6e 64 0d 2f 2f 09 |ZoneProc| and.//.|
|00001030| 09 09 72 65 73 65 72 76 | 65 20 6d 65 6d 6f 72 79 |..reserv|e memory|
|00001040| 20 61 72 65 61 20 6c 61 | 72 67 65 20 65 6e 6f 75 | area la|rge enou|
|00001050| 67 68 20 74 6f 20 68 6f | 6c 64 0d 2f 2f 09 09 09 |gh to ho|ld.//...|
|00001060| 61 6c 6c 20 74 68 65 20 | 73 70 61 63 65 20 77 65 |all the |space we|
|00001070| d5 64 20 6e 65 65 64 2e | 0d 2f 2f 0d 0d 76 6f 69 |.d need.|.//..voi|
|00001080| 64 0d 45 72 72 6f 72 41 | 6c 65 72 74 28 73 68 6f |d.ErrorA|lert(sho|
|00001090| 72 74 20 73 74 72 69 6e | 67 4c 69 73 74 2c 73 68 |rt strin|gList,sh|
|000010a0| 6f 72 74 20 77 68 69 63 | 68 53 74 72 69 6e 67 29 |ort whic|hString)|
|000010b0| 0d 09 7b 0d 09 53 74 72 | 32 35 35 09 09 09 09 09 |..{..Str|255.....|
|000010c0| 65 72 72 6f 72 53 74 72 | 69 6e 67 3b 0d 09 47 72 |errorStr|ing;..Gr|
|000010d0| 61 66 50 74 72 09 09 09 | 09 09 6f 6c 64 50 6f 72 |afPtr...|..oldPor|
|000010e0| 74 2c 77 69 6e 64 6f 77 | 4d 67 72 50 6f 72 74 3b |t,window|MgrPort;|
|000010f0| 0d 09 73 68 6f 72 74 09 | 09 09 09 09 6f 6c 64 46 |..short.|....oldF|
|00001100| 6f 6e 74 3b 0d 09 44 69 | 61 6c 6f 67 54 65 6d 70 |ont;..Di|alogTemp|
|00001110| 6c 61 74 65 48 61 6e 64 | 6c 65 09 65 72 72 6f 72 |lateHand|le.error|
|00001120| 44 69 61 6c 6f 67 54 65 | 6d 70 6c 61 74 65 3b 0d |DialogTe|mplate;.|
|00001130| 09 44 69 61 6c 6f 67 49 | 74 65 6d 4c 69 73 74 48 |.DialogI|temListH|
|00001140| 61 6e 64 6c 65 09 65 72 | 72 6f 72 44 69 61 6c 6f |andle.er|rorDialo|
|00001150| 67 49 74 65 6d 73 3b 0d | 09 54 45 48 61 6e 64 6c |gItems;.|.TEHandl|
|00001160| 65 09 09 09 09 61 54 45 | 48 61 6e 64 6c 65 3b 0d |e....aTE|Handle;.|
|00001170| 09 52 65 63 74 09 09 09 | 09 09 74 65 78 74 52 65 |.Rect...|..textRe|
|00001180| 63 74 3b 0d 09 73 68 6f | 72 74 09 09 09 09 09 74 |ct;..sho|rt.....t|
|00001190| 65 78 74 48 65 69 67 68 | 74 3b 0d 09 73 68 6f 72 |extHeigh|t;..shor|
|000011a0| 74 09 09 09 09 09 61 64 | 64 69 74 69 6f 6e 61 6c |t.....ad|ditional|
|000011b0| 53 70 61 63 65 4e 65 65 | 64 65 64 3b 0d 09 44 69 |SpaceNee|ded;..Di|
|000011c0| 61 6c 6f 67 49 74 65 6d | 50 74 72 09 09 09 6f 6b |alogItem|Ptr...ok|
|000011d0| 42 75 74 74 6f 6e 49 74 | 65 6d 2c 65 72 72 6f 72 |ButtonIt|em,error|
|000011e0| 54 65 78 74 49 74 65 6d | 3b 0d 09 63 6f 6e 73 74 |TextItem|;..const|
|000011f0| 20 53 74 72 69 6e 67 50 | 74 72 09 09 09 6e 75 6c | StringP|tr...nul|
|00001200| 6c 53 74 72 20 3d 20 28 | 53 74 72 69 6e 67 50 74 |lStr = (|StringPt|
|00001210| 72 29 20 22 5c 70 22 3b | 0d 0d 09 47 65 74 49 6e |r) "\p";|...GetIn|
|00001220| 64 53 74 72 69 6e 67 28 | 65 72 72 6f 72 53 74 72 |dString(|errorStr|
|00001230| 69 6e 67 2c 73 74 72 69 | 6e 67 4c 69 73 74 2c 77 |ing,stri|ngList,w|
|00001240| 68 69 63 68 53 74 72 69 | 6e 67 29 3b 0d 09 0d 09 |hichStri|ng);....|
|00001250| 65 72 72 6f 72 44 69 61 | 6c 6f 67 54 65 6d 70 6c |errorDia|logTempl|
|00001260| 61 74 65 20 3d 20 28 44 | 69 61 6c 6f 67 54 65 6d |ate = (D|ialogTem|
|00001270| 70 6c 61 74 65 48 61 6e | 64 6c 65 29 20 47 65 74 |plateHan|dle) Get|
|00001280| 31 52 65 73 6f 75 72 63 | 65 28 27 44 4c 4f 47 27 |1Resourc|e('DLOG'|
|00001290| 2c 6b 45 72 72 6f 72 41 | 6c 65 72 74 49 44 29 3b |,kErrorA|lertID);|
|000012a0| 0d 09 48 4c 6f 63 6b 28 | 28 48 61 6e 64 6c 65 29 |..HLock(|(Handle)|
|000012b0| 20 65 72 72 6f 72 44 69 | 61 6c 6f 67 54 65 6d 70 | errorDi|alogTemp|
|000012c0| 6c 61 74 65 29 3b 0d 09 | 0d 09 65 72 72 6f 72 44 |late);..|..errorD|
|000012d0| 69 61 6c 6f 67 49 74 65 | 6d 73 20 3d 20 28 44 69 |ialogIte|ms = (Di|
|000012e0| 61 6c 6f 67 49 74 65 6d | 4c 69 73 74 48 61 6e 64 |alogItem|ListHand|
|000012f0| 6c 65 29 20 47 65 74 31 | 52 65 73 6f 75 72 63 65 |le) Get1|Resource|
|00001300| 28 27 44 49 54 4c 27 2c | 28 2a 2a 65 72 72 6f 72 |('DITL',|(**error|
|00001310| 44 69 61 6c 6f 67 54 65 | 6d 70 6c 61 74 65 29 2e |DialogTe|mplate).|
|00001320| 69 74 65 6d 73 49 44 29 | 3b 0d 09 48 4c 6f 63 6b |itemsID)|;..HLock|
|00001330| 28 28 48 61 6e 64 6c 65 | 29 20 65 72 72 6f 72 44 |((Handle|) errorD|
|00001340| 69 61 6c 6f 67 49 74 65 | 6d 73 29 3b 0d 09 0d 09 |ialogIte|ms);....|
|00001350| 2f 2f 09 46 69 6e 64 20 | 74 68 65 20 64 69 61 6c |//.Find |the dial|
|00001360| 6f 67 20 69 74 65 6d 73 | 0d 09 0d 09 6f 6b 42 75 |og items|....okBu|
|00001370| 74 74 6f 6e 49 74 65 6d | 20 3d 20 28 2a 2a 65 72 |ttonItem| = (**er|
|00001380| 72 6f 72 44 69 61 6c 6f | 67 49 74 65 6d 73 29 2e |rorDialo|gItems).|
|00001390| 66 69 72 73 74 49 74 65 | 6d 3b 0d 09 65 72 72 6f |firstIte|m;..erro|
|000013a0| 72 54 65 78 74 49 74 65 | 6d 20 3d 20 28 44 69 61 |rTextIte|m = (Dia|
|000013b0| 6c 6f 67 49 74 65 6d 50 | 74 72 29 20 28 28 50 74 |logItemP|tr) ((Pt|
|000013c0| 72 29 20 6f 6b 42 75 74 | 74 6f 6e 49 74 65 6d 20 |r) okBut|tonItem |
|000013d0| 2b 20 73 69 7a 65 6f 66 | 28 44 69 61 6c 6f 67 49 |+ sizeof|(DialogI|
|000013e0| 74 65 6d 29 20 2b 20 6f | 6b 42 75 74 74 6f 6e 49 |tem) + o|kButtonI|
|000013f0| 74 65 6d 2d 3e 6c 65 6e | 67 74 68 29 3b 0d 09 0d |tem->len|gth);...|
|00001400| 09 47 65 74 50 6f 72 74 | 28 26 6f 6c 64 50 6f 72 |.GetPort|(&oldPor|
|00001410| 74 29 3b 0d 09 47 65 74 | 57 4d 67 72 50 6f 72 74 |t);..Get|WMgrPort|
|00001420| 28 26 77 69 6e 64 6f 77 | 4d 67 72 50 6f 72 74 29 |(&window|MgrPort)|
|00001430| 3b 0d 09 53 65 74 50 6f | 72 74 28 77 69 6e 64 6f |;..SetPo|rt(windo|
|00001440| 77 4d 67 72 50 6f 72 74 | 29 3b 0d 09 6f 6c 64 46 |wMgrPort|);..oldF|
|00001450| 6f 6e 74 20 3d 20 71 64 | 2e 74 68 65 50 6f 72 74 |ont = qd|.thePort|
|00001460| 2d 3e 74 78 46 6f 6e 74 | 3b 0d 09 54 65 78 74 46 |->txFont|;..TextF|
|00001470| 6f 6e 74 28 73 79 73 74 | 65 6d 46 6f 6e 74 29 3b |ont(syst|emFont);|
|00001480| 0d 0d 09 2f 2f 20 75 73 | 65 20 74 68 65 20 69 6e |...// us|e the in|
|00001490| 69 74 69 61 6c 20 73 69 | 7a 65 20 66 72 6f 6d 20 |itial si|ze from |
|000014a0| 74 68 65 20 27 44 49 54 | 4c 27 2c 20 69 6e 73 74 |the 'DIT|L', inst|
|000014b0| 65 61 64 20 6f 66 20 72 | 61 6e 64 6f 6d 20 67 61 |ead of r|andom ga|
|000014c0| 72 62 61 67 65 2e 0d 09 | 74 65 78 74 52 65 63 74 |rbage...|textRect|
|000014d0| 20 3d 20 65 72 72 6f 72 | 54 65 78 74 49 74 65 6d | = error|TextItem|
|000014e0| 2d 3e 62 6f 75 6e 64 73 | 52 65 63 74 3b 0d 09 61 |->bounds|Rect;..a|
|000014f0| 54 45 48 61 6e 64 6c 65 | 20 3d 20 54 45 4e 65 77 |TEHandle| = TENew|
|00001500| 28 26 74 65 78 74 52 65 | 63 74 2c 26 74 65 78 74 |(&textRe|ct,&text|
|00001510| 52 65 63 74 29 3b 0d 09 | 54 45 53 65 74 54 65 78 |Rect);..|TESetTex|
|00001520| 74 28 26 65 72 72 6f 72 | 53 74 72 69 6e 67 5b 31 |t(&error|String[1|
|00001530| 5d 2c 65 72 72 6f 72 53 | 74 72 69 6e 67 5b 30 5d |],errorS|tring[0]|
|00001540| 2c 61 54 45 48 61 6e 64 | 6c 65 29 3b 0d 09 74 65 |,aTEHand|le);..te|
|00001550| 78 74 48 65 69 67 68 74 | 20 3d 20 28 2a 61 54 45 |xtHeight| = (*aTE|
|00001560| 48 61 6e 64 6c 65 29 2d | 3e 6c 69 6e 65 48 65 69 |Handle)-|>lineHei|
|00001570| 67 68 74 20 2a 20 28 2a | 61 54 45 48 61 6e 64 6c |ght * (*|aTEHandl|
|00001580| 65 29 2d 3e 6e 4c 69 6e | 65 73 3b 0d 09 54 45 44 |e)->nLin|es;..TED|
|00001590| 69 73 70 6f 73 65 28 61 | 54 45 48 61 6e 64 6c 65 |ispose(a|TEHandle|
|000015a0| 29 3b 0d 0d 09 61 64 64 | 69 74 69 6f 6e 61 6c 53 |);...add|itionalS|
|000015b0| 70 61 63 65 4e 65 65 64 | 65 64 20 3d 20 74 65 78 |paceNeed|ed = tex|
|000015c0| 74 48 65 69 67 68 74 20 | 2d 20 28 65 72 72 6f 72 |tHeight |- (error|
|000015d0| 54 65 78 74 49 74 65 6d | 2d 3e 62 6f 75 6e 64 73 |TextItem|->bounds|
|000015e0| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 0d 09 09 09 09 |Rect.bot|tom.....|
|000015f0| 09 09 09 2d 20 65 72 72 | 6f 72 54 65 78 74 49 74 |...- err|orTextIt|
|00001600| 65 6d 2d 3e 62 6f 75 6e | 64 73 52 65 63 74 2e 74 |em->boun|dsRect.t|
|00001610| 6f 70 29 3b 0d 0d 09 69 | 66 20 28 61 64 64 69 74 |op);...i|f (addit|
|00001620| 69 6f 6e 61 6c 53 70 61 | 63 65 4e 65 65 64 65 64 |ionalSpa|ceNeeded|
|00001630| 20 3e 20 30 29 0d 09 09 | 7b 0d 09 09 28 2a 2a 65 | > 0)...|{...(**e|
|00001640| 72 72 6f 72 44 69 61 6c | 6f 67 54 65 6d 70 6c 61 |rrorDial|ogTempla|
|00001650| 74 65 29 2e 62 6f 75 6e | 64 73 52 65 63 74 2e 62 |te).boun|dsRect.b|
|00001660| 6f 74 74 6f 6d 20 2b 3d | 20 61 64 64 69 74 69 6f |ottom +=| additio|
|00001670| 6e 61 6c 53 70 61 63 65 | 4e 65 65 64 65 64 3b 0d |nalSpace|Needed;.|
|00001680| 09 09 65 72 72 6f 72 54 | 65 78 74 49 74 65 6d 2d |..errorT|extItem-|
|00001690| 3e 62 6f 75 6e 64 73 52 | 65 63 74 2e 62 6f 74 74 |>boundsR|ect.bott|
|000016a0| 6f 6d 20 2b 3d 20 61 64 | 64 69 74 69 6f 6e 61 6c |om += ad|ditional|
|000016b0| 53 70 61 63 65 4e 65 65 | 64 65 64 3b 0d 09 09 4f |SpaceNee|ded;...O|
|000016c0| 66 66 73 65 74 52 65 63 | 74 28 26 6f 6b 42 75 74 |ffsetRec|t(&okBut|
|000016d0| 74 6f 6e 49 74 65 6d 2d | 3e 62 6f 75 6e 64 73 52 |tonItem-|>boundsR|
|000016e0| 65 63 74 2c 30 2c 61 64 | 64 69 74 69 6f 6e 61 6c |ect,0,ad|ditional|
|000016f0| 53 70 61 63 65 4e 65 65 | 64 65 64 29 3b 0d 09 09 |SpaceNee|ded);...|
|00001700| 7d 0d 09 09 0d 09 54 65 | 78 74 46 6f 6e 74 28 6f |}.....Te|xtFont(o|
|00001710| 6c 64 46 6f 6e 74 29 3b | 0d 09 53 65 74 50 6f 72 |ldFont);|..SetPor|
|00001720| 74 28 6f 6c 64 50 6f 72 | 74 29 3b 0d 09 0d 09 49 |t(oldPor|t);....I|
|00001730| 6e 69 74 43 75 72 73 6f | 72 28 29 3b 0d 09 50 61 |nitCurso|r();..Pa|
|00001740| 72 61 6d 54 65 78 74 28 | 65 72 72 6f 72 53 74 72 |ramText(|errorStr|
|00001750| 69 6e 67 2c 6e 75 6c 6c | 53 74 72 2c 6e 75 6c 6c |ing,null|Str,null|
|00001760| 53 74 72 2c 6e 75 6c 6c | 53 74 72 29 3b 0d 0d 09 |Str,null|Str);...|
|00001770| 28 76 6f 69 64 29 20 53 | 74 61 6e 64 61 72 64 41 |(void) S|tandardA|
|00001780| 6c 65 72 74 28 6b 45 72 | 72 6f 72 41 6c 65 72 74 |lert(kEr|rorAlert|
|00001790| 49 44 29 3b 0d 0d 09 52 | 65 6c 65 61 73 65 52 65 |ID);...R|eleaseRe|
|000017a0| 73 6f 75 72 63 65 28 28 | 48 61 6e 64 6c 65 29 20 |source((|Handle) |
|000017b0| 65 72 72 6f 72 44 69 61 | 6c 6f 67 54 65 6d 70 6c |errorDia|logTempl|
|000017c0| 61 74 65 29 3b 0d 09 52 | 65 6c 65 61 73 65 52 65 |ate);..R|eleaseRe|
|000017d0| 73 6f 75 72 63 65 28 28 | 48 61 6e 64 6c 65 29 20 |source((|Handle) |
|000017e0| 65 72 72 6f 72 44 69 61 | 6c 6f 67 49 74 65 6d 73 |errorDia|logItems|
|000017f0| 29 3b 0d 09 7d 0d 0d 0d | 2f 2f 2f 2f 2f 2f 2f 2f |);..}...|////////|
|00001800| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00001810| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00001820| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00001830| 2f 2f 2f 0d 2f 2f 0d 2f | 2f 09 46 61 74 61 6c 45 |///.//./|/.FatalE|
|00001840| 72 72 6f 72 41 6c 65 72 | 74 0d 2f 2f 0d 2f 2f 09 |rrorAler|t.//.//.|
|00001850| 41 20 63 6f 6d 70 61 6e | 69 6f 6e 20 74 6f 20 45 |A compan|ion to E|
|00001860| 72 72 6f 72 41 6c 65 72 | 74 20 77 68 69 63 68 20 |rrorAler|t which |
|00001870| 61 6c 73 6f 20 6b 69 6c | 6c 73 20 74 68 65 20 70 |also kil|ls the p|
|00001880| 72 6f 63 65 73 73 2e 0d | 2f 2f 0d 0d 76 6f 69 64 |rocess..|//..void|
|00001890| 0d 46 61 74 61 6c 45 72 | 72 6f 72 41 6c 65 72 74 |.FatalEr|rorAlert|
|000018a0| 28 73 68 6f 72 74 20 73 | 74 72 69 6e 67 4c 69 73 |(short s|tringLis|
|000018b0| 74 2c 73 68 6f 72 74 20 | 77 68 69 63 68 53 74 72 |t,short |whichStr|
|000018c0| 69 6e 67 29 0d 09 7b 0d | 09 45 72 72 6f 72 41 6c |ing)..{.|.ErrorAl|
|000018d0| 65 72 74 28 73 74 72 69 | 6e 67 4c 69 73 74 2c 77 |ert(stri|ngList,w|
|000018e0| 68 69 63 68 53 74 72 69 | 6e 67 29 3b 0d 09 45 78 |hichStri|ng);..Ex|
|000018f0| 69 74 54 6f 53 68 65 6c | 6c 28 29 3b 0d 09 7d 0d |itToShel|l();..}.|
|00001900| 0d 0d 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |..//////|////////|
|00001910| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00001920| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00001930| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 0d 2f 2f |////////|/////.//|
|00001940| 0d 2f 2f 09 53 74 61 6e | 64 61 72 64 44 69 61 6c |.//.Stan|dardDial|
|00001950| 6f 67 46 69 6c 74 65 72 | 20 61 6e 64 20 53 74 61 |ogFilter| and Sta|
|00001960| 6e 64 61 72 64 44 69 61 | 6c 6f 67 46 69 6c 74 65 |ndardDia|logFilte|
|00001970| 72 59 44 0d 2f 2f 0d 2f | 2f 09 54 68 65 73 65 20 |rYD.//./|/.These |
|00001980| 66 75 6e 63 74 69 6f 6e | 20 74 61 6b 65 73 20 63 |function| takes c|
|00001990| 61 72 65 20 6f 66 20 72 | 6f 75 74 69 6e 67 20 65 |are of r|outing e|
|000019a0| 76 65 6e 74 73 20 6e 6f | 74 20 6d 65 61 6e 74 0d |vents no|t meant.|
|000019b0| 2f 2f 09 66 6f 72 20 74 | 68 65 20 64 69 61 6c 6f |//.for t|he dialo|
|000019c0| 67 20 77 69 6e 64 6f 77 | 20 74 6f 20 6f 74 68 65 |g window| to othe|
|000019d0| 72 20 70 61 72 74 73 20 | 6f 66 20 74 68 65 20 61 |r parts |of the a|
|000019e0| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 0d 2f 2f 0d 2f |pplicati|on..//./|
|000019f0| 2f 09 55 73 65 20 74 68 | 65 6d 20 61 73 20 61 6e |/.Use th|em as an|
|00001a00| 20 61 6c 74 65 72 6e 61 | 74 69 76 65 20 74 6f 20 | alterna|tive to |
|00001a10| 70 61 73 73 69 6e 67 20 | 61 20 4e 49 4c 20 4d 6f |passing |a NIL Mo|
|00001a20| 64 61 6c 46 69 6c 74 65 | 72 50 72 6f 63 0d 2f 2f |dalFilte|rProc.//|
|00001a30| 09 74 6f 20 4d 6f 64 61 | 6c 44 69 61 6c 6f 67 28 |.to Moda|lDialog(|
|00001a40| 29 20 61 6e 64 20 43 75 | 73 74 6f 6d 47 65 74 28 |) and Cu|stomGet(|
|00001a50| 50 75 74 29 46 69 6c 65 | 2e 20 55 6e 6c 69 6b 65 |Put)File|. Unlike|
|00001a60| 20 74 68 65 20 64 65 66 | 61 75 6c 74 0d 2f 2f 09 | the def|ault.//.|
|00001a70| 66 69 6c 74 65 72 2c 20 | 74 68 65 73 65 20 72 6f |filter, |these ro|
|00001a80| 75 74 69 6e 65 73 20 70 | 72 6f 70 65 72 6c 79 20 |utines p|roperly |
|00001a90| 70 72 6f 63 65 73 73 65 | 73 20 75 70 64 61 74 65 |processe|s update|
|00001aa0| 20 65 76 65 6e 74 73 0d | 2f 2f 09 74 6f 20 6b 65 | events.|//.to ke|
|00001ab0| 65 70 20 62 61 63 6b 67 | 72 6f 75 6e 64 20 70 72 |ep backg|round pr|
|00001ac0| 6f 63 65 73 73 65 73 20 | 72 75 6e 6e 69 6e 67 2e |ocesses |running.|
|00001ad0| 0d 2f 2f 0d 2f 2f 09 54 | 68 65 20 54 68 72 65 61 |.//.//.T|he Threa|
|00001ae0| 64 20 4d 61 6e 61 67 65 | 72 2c 20 69 66 20 70 72 |d Manage|r, if pr|
|00001af0| 65 73 65 6e 74 2c 20 69 | 73 20 61 6c 73 6f 20 63 |esent, i|s also c|
|00001b00| 61 6c 6c 65 64 20 74 6f | 20 79 69 65 6c 64 0d 2f |alled to| yield./|
|00001b10| 2f 09 63 6f 6e 74 72 6f | 6c 20 74 6f 20 6f 74 68 |/.contro|l to oth|
|00001b20| 65 72 20 63 6f 6f 70 65 | 72 61 74 69 76 65 20 74 |er coope|rative t|
|00001b30| 68 72 65 61 64 73 20 77 | 69 74 68 69 6e 20 74 68 |hreads w|ithin th|
|00001b40| 65 20 70 72 6f 63 65 73 | 73 2e 0d 2f 2f 0d 2f 2f |e proces|s..//.//|
|00001b50| 09 42 65 63 61 75 73 65 | 20 6f 66 20 70 61 73 63 |.Because| of pasc|
|00001b60| 61 6c 20 63 61 6c 6c 69 | 6e 67 20 63 6f 6e 76 65 |al calli|ng conve|
|00001b70| 6e 74 69 6f 6e 73 20 77 | 65 20 6e 65 65 64 20 74 |ntions w|e need t|
|00001b80| 77 6f 20 73 65 70 61 72 | 61 74 65 0d 2f 2f 09 72 |wo separ|ate.//.r|
|00001b90| 6f 75 74 69 6e 65 73 2c | 20 62 75 74 20 74 68 69 |outines,| but thi|
|00001ba0| 73 20 69 73 20 6d 69 6e | 69 6d 69 7a 65 64 20 62 |s is min|imized b|
|00001bb0| 79 20 73 68 61 72 69 6e | 67 20 69 6d 70 6c 65 6d |y sharin|g implem|
|00001bc0| 65 6e 74 61 74 69 6f 6e | 0d 2f 2f 09 69 6e 20 46 |entation|.//.in F|
|00001bd0| 69 6c 74 65 72 50 72 6f | 63 43 6f 6d 6d 6f 6e 2e |ilterPro|cCommon.|
|00001be0| 0d 0d 0d 4d 6f 64 61 6c | 46 69 6c 74 65 72 55 50 |...Modal|FilterUP|
|00001bf0| 50 09 53 74 61 6e 64 61 | 72 64 44 69 61 6c 6f 67 |P.Standa|rdDialog|
|00001c00| 46 69 6c 74 65 72 55 50 | 50 0d 3d 20 4e 65 77 4d |FilterUP|P.= NewM|
|00001c10| 6f 64 61 6c 46 69 6c 74 | 65 72 50 72 6f 63 28 53 |odalFilt|erProc(S|
|00001c20| 74 61 6e 64 61 72 64 44 | 69 61 6c 6f 67 46 69 6c |tandardD|ialogFil|
|00001c30| 74 65 72 50 72 6f 63 29 | 3b 0d 0d 4d 6f 64 61 6c |terProc)|;..Modal|
|00001c40| 46 69 6c 74 65 72 59 44 | 55 50 50 09 53 74 61 6e |FilterYD|UPP.Stan|
|00001c50| 64 61 72 64 44 69 61 6c | 6f 67 46 69 6c 74 65 72 |dardDial|ogFilter|
|00001c60| 59 44 55 50 50 0d 3d 20 | 4e 65 77 4d 6f 64 61 6c |YDUPP.= |NewModal|
|00001c70| 46 69 6c 74 65 72 59 44 | 50 72 6f 63 28 53 74 61 |FilterYD|Proc(Sta|
|00001c80| 6e 64 61 72 64 44 69 61 | 6c 6f 67 46 69 6c 74 65 |ndardDia|logFilte|
|00001c90| 72 59 44 50 72 6f 63 29 | 3b 0d 0d 0d 70 61 73 63 |rYDProc)|;...pasc|
|00001ca0| 61 6c 20 42 6f 6f 6c 65 | 61 6e 0d 53 74 61 6e 64 |al Boole|an.Stand|
|00001cb0| 61 72 64 44 69 61 6c 6f | 67 46 69 6c 74 65 72 50 |ardDialo|gFilterP|
|00001cc0| 72 6f 63 28 44 69 61 6c | 6f 67 52 65 66 20 74 68 |roc(Dial|ogRef th|
|00001cd0| 65 44 69 61 6c 6f 67 2c | 20 45 76 65 6e 74 52 65 |eDialog,| EventRe|
|00001ce0| 63 6f 72 64 2a 20 61 6e | 45 76 65 6e 74 2c 20 73 |cord* an|Event, s|
|00001cf0| 68 6f 72 74 2a 20 69 74 | 65 6d 48 69 74 29 0d 09 |hort* it|emHit)..|
|00001d00| 7b 0d 09 2f 2f 09 43 61 | 6c 6c 20 74 68 72 6f 75 |{..//.Ca|ll throu|
|00001d10| 67 68 20 63 6f 6d 6d 6f | 6e 20 63 6f 64 65 20 74 |gh commo|n code t|
|00001d20| 6f 20 63 68 65 63 6b 20 | 66 6f 72 20 65 76 65 6e |o check |for even|
|00001d30| 74 73 20 77 65 d5 64 20 | 6c 69 6b 65 20 74 6f 20 |ts we.d |like to |
|00001d40| 68 61 6e 64 6c 65 2e 0d | 09 2f 2f 09 49 66 20 74 |handle..|.//.If t|
|00001d50| 68 61 74 20 69 73 20 75 | 6e 73 75 63 63 65 73 73 |hat is u|nsuccess|
|00001d60| 66 75 6c 2c 20 63 61 6c | 6c 20 74 68 72 6f 75 67 |ful, cal|l throug|
|00001d70| 68 20 74 68 65 20 53 79 | 73 74 65 6d 20 37 20 53 |h the Sy|stem 7 S|
|00001d80| 74 64 46 69 6c 74 65 72 | 50 72 6f 63 0d 09 2f 2f |tdFilter|Proc..//|
|00001d90| 09 74 6f 20 68 61 6e 64 | 6c 65 20 43 52 2c 20 d2 |.to hand|le CR, .|
|00001da0| 43 4d 44 2d 2e d3 20 26 | 20 45 53 43 20 69 6e 20 |CMD-.. &| ESC in |
|00001db0| 61 6e 20 69 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |an inter|national|
|00001dc0| 2d 66 72 69 65 6e 64 6c | 79 20 6d 61 6e 6e 65 72 |-friendl|y manner|
|00001dd0| 2e 0d 0d 09 69 66 20 28 | 46 69 6c 74 65 72 50 72 |....if (|FilterPr|
|00001de0| 6f 63 43 6f 6d 6d 6f 6e | 28 74 68 65 44 69 61 6c |ocCommon|(theDial|
|00001df0| 6f 67 2c 20 61 6e 45 76 | 65 6e 74 2c 20 69 74 65 |og, anEv|ent, ite|
|00001e00| 6d 48 69 74 29 29 0d 09 | 09 72 65 74 75 72 6e 20 |mHit))..|.return |
|00001e10| 74 72 75 65 3b 0d 09 65 | 6c 73 65 0d 09 09 72 65 |true;..e|lse...re|
|00001e20| 74 75 72 6e 20 28 53 74 | 64 46 69 6c 74 65 72 50 |turn (St|dFilterP|
|00001e30| 72 6f 63 28 74 68 65 44 | 69 61 6c 6f 67 2c 20 61 |roc(theD|ialog, a|
|00001e40| 6e 45 76 65 6e 74 2c 20 | 69 74 65 6d 48 69 74 29 |nEvent, |itemHit)|
|00001e50| 29 3b 0d 09 7d 0d 0d 0d | 70 61 73 63 61 6c 20 42 |);..}...|pascal B|
|00001e60| 6f 6f 6c 65 61 6e 0d 53 | 74 61 6e 64 61 72 64 44 |oolean.S|tandardD|
|00001e70| 69 61 6c 6f 67 46 69 6c | 74 65 72 59 44 50 72 6f |ialogFil|terYDPro|
|00001e80| 63 28 44 69 61 6c 6f 67 | 52 65 66 20 74 68 65 44 |c(Dialog|Ref theD|
|00001e90| 69 61 6c 6f 67 2c 20 45 | 76 65 6e 74 52 65 63 6f |ialog, E|ventReco|
|00001ea0| 72 64 2a 20 61 6e 45 76 | 65 6e 74 2c 20 73 68 6f |rd* anEv|ent, sho|
|00001eb0| 72 74 2a 20 69 74 65 6d | 48 69 74 2c 20 76 6f 69 |rt* item|Hit, voi|
|00001ec0| 64 20 2a 20 2f 2a 75 6e | 75 73 65 64 44 61 74 61 |d * /*un|usedData|
|00001ed0| 2a 2f 29 0d 09 7b 0d 09 | 2f 2f 09 57 65 20 64 6f |*/)..{..|//.We do|
|00001ee0| 6e d5 74 20 63 61 6c 6c | 20 74 68 72 6f 75 67 68 |n.t call| through|
|00001ef0| 20 74 6f 20 53 74 64 46 | 69 6c 74 65 72 50 72 6f | to StdF|ilterPro|
|00001f00| 63 20 73 69 6e 63 65 20 | 74 68 65 0d 09 2f 2f 09 |c since |the..//.|
|00001f10| 53 74 61 6e 64 61 72 64 | 20 46 69 6c 65 20 50 61 |Standard| File Pa|
|00001f20| 63 6b 61 67 65 20 61 6c | 72 65 61 64 79 20 64 6f |ckage al|ready do|
|00001f30| 65 73 20 65 76 65 72 79 | 74 68 69 6e 67 20 77 65 |es every|thing we|
|00001f40| 20 6e 65 65 64 2e 0d 0d | 09 72 65 74 75 72 6e 20 | need...|.return |
|00001f50| 46 69 6c 74 65 72 50 72 | 6f 63 43 6f 6d 6d 6f 6e |FilterPr|ocCommon|
|00001f60| 28 74 68 65 44 69 61 6c | 6f 67 2c 20 61 6e 45 76 |(theDial|og, anEv|
|00001f70| 65 6e 74 2c 20 69 74 65 | 6d 48 69 74 29 3b 0d 09 |ent, ite|mHit);..|
|00001f80| 7d 0d 0d 0d 76 6f 69 64 | 0d 50 73 65 75 64 6f 43 |}...void|.PseudoC|
|00001f90| 6c 69 63 6b 49 6e 44 69 | 61 6c 6f 67 49 74 65 6d |lickInDi|alogItem|
|00001fa0| 28 44 69 61 6c 6f 67 52 | 65 66 20 74 68 65 44 69 |(DialogR|ef theDi|
|00001fb0| 61 6c 6f 67 2c 20 73 68 | 6f 72 74 20 69 74 65 6d |alog, sh|ort item|
|00001fc0| 54 6f 43 6c 69 63 6b 29 | 0d 09 7b 0d 09 43 6f 6e |ToClick)|..{..Con|
|00001fd0| 74 72 6f 6c 52 65 66 09 | 69 74 65 6d 48 61 6e 64 |trolRef.|itemHand|
|00001fe0| 6c 65 3b 0d 09 52 65 63 | 74 09 09 69 74 65 6d 42 |le;..Rec|t..itemB|
|00001ff0| 6f 78 3b 0d 09 6c 6f 6e | 67 09 09 66 69 6e 61 6c |ox;..lon|g..final|
|00002000| 54 69 63 6b 73 3b 0d 09 | 73 68 6f 72 74 09 09 69 |Ticks;..|short..i|
|00002010| 74 65 6d 54 79 70 65 3b | 0d 09 0d 09 47 65 74 44 |temType;|....GetD|
|00002020| 69 61 6c 6f 67 49 74 65 | 6d 28 74 68 65 44 69 61 |ialogIte|m(theDia|
|00002030| 6c 6f 67 2c 69 74 65 6d | 54 6f 43 6c 69 63 6b 2c |log,item|ToClick,|
|00002040| 26 69 74 65 6d 54 79 70 | 65 2c 20 28 48 61 6e 64 |&itemTyp|e, (Hand|
|00002050| 6c 65 20 2a 29 20 26 69 | 74 65 6d 48 61 6e 64 6c |le *) &i|temHandl|
|00002060| 65 2c 26 69 74 65 6d 42 | 6f 78 29 3b 0d 0d 09 48 |e,&itemB|ox);...H|
|00002070| 69 6c 69 74 65 43 6f 6e | 74 72 6f 6c 28 20 69 74 |iliteCon|trol( it|
|00002080| 65 6d 48 61 6e 64 6c 65 | 2c 20 6b 43 6f 6e 74 72 |emHandle|, kContr|
|00002090| 6f 6c 42 75 74 74 6f 6e | 50 61 72 74 20 29 3b 0d |olButton|Part );.|
|000020a0| 09 44 65 6c 61 79 28 38 | 2c 26 66 69 6e 61 6c 54 |.Delay(8|,&finalT|
|000020b0| 69 63 6b 73 29 3b 0d 09 | 48 69 6c 69 74 65 43 6f |icks);..|HiliteCo|
|000020c0| 6e 74 72 6f 6c 28 20 69 | 74 65 6d 48 61 6e 64 6c |ntrol( i|temHandl|
|000020d0| 65 2c 20 30 20 29 3b 0d | 09 7d 0d 0d 0d 42 6f 6f |e, 0 );.|.}...Boo|
|000020e0| 6c 65 61 6e 0d 54 6f 67 | 67 6c 65 43 68 65 63 6b |lean.Tog|gleCheck|
|000020f0| 42 6f 78 28 44 69 61 6c | 6f 67 52 65 66 20 74 68 |Box(Dial|ogRef th|
|00002100| 65 44 69 61 6c 6f 67 2c | 20 73 68 6f 72 74 20 74 |eDialog,| short t|
|00002110| 68 65 43 68 65 63 6b 42 | 6f 78 29 0d 09 7b 0d 09 |heCheckB|ox)..{..|
|00002120| 43 6f 6e 74 72 6f 6c 52 | 65 66 09 69 74 65 6d 48 |ControlR|ef.itemH|
|00002130| 61 6e 64 6c 65 3b 0d 09 | 52 65 63 74 09 09 69 74 |andle;..|Rect..it|
|00002140| 65 6d 42 6f 78 3b 0d 09 | 73 68 6f 72 74 09 09 69 |emBox;..|short..i|
|00002150| 74 65 6d 54 79 70 65 3b | 0d 09 0d 09 47 65 74 44 |temType;|....GetD|
|00002160| 69 61 6c 6f 67 49 74 65 | 6d 28 74 68 65 44 69 61 |ialogIte|m(theDia|
|00002170| 6c 6f 67 2c 74 68 65 43 | 68 65 63 6b 42 6f 78 2c |log,theC|heckBox,|
|00002180| 26 69 74 65 6d 54 79 70 | 65 2c 28 48 61 6e 64 6c |&itemTyp|e,(Handl|
|00002190| 65 20 2a 29 20 26 69 74 | 65 6d 48 61 6e 64 6c 65 |e *) &it|emHandle|
|000021a0| 2c 26 69 74 65 6d 42 6f | 78 29 3b 0d 0d 09 69 66 |,&itemBo|x);...if|
|000021b0| 20 28 47 65 74 43 6f 6e | 74 72 6f 6c 56 61 6c 75 | (GetCon|trolValu|
|000021c0| 65 28 69 74 65 6d 48 61 | 6e 64 6c 65 29 20 3d 3d |e(itemHa|ndle) ==|
|000021d0| 20 31 29 0d 09 09 7b 0d | 09 09 53 65 74 43 6f 6e | 1)...{.|..SetCon|
|000021e0| 74 72 6f 6c 56 61 6c 75 | 65 28 69 74 65 6d 48 61 |trolValu|e(itemHa|
|000021f0| 6e 64 6c 65 2c 30 29 3b | 0d 09 09 72 65 74 75 72 |ndle,0);|...retur|
|00002200| 6e 20 66 61 6c 73 65 3b | 0d 09 09 7d 0d 09 65 6c |n false;|...}..el|
|00002210| 73 65 0d 09 09 7b 0d 09 | 09 53 65 74 43 6f 6e 74 |se...{..|.SetCont|
|00002220| 72 6f 6c 56 61 6c 75 65 | 28 69 74 65 6d 48 61 6e |rolValue|(itemHan|
|00002230| 64 6c 65 2c 31 29 3b 0d | 09 09 72 65 74 75 72 6e |dle,1);.|..return|
|00002240| 20 74 72 75 65 3b 0d 09 | 09 7d 0d 09 7d 0d 0d 0d | true;..|.}..}...|
|00002250| 42 6f 6f 6c 65 61 6e 0d | 46 69 6c 74 65 72 50 72 |Boolean.|FilterPr|
|00002260| 6f 63 43 6f 6d 6d 6f 6e | 28 44 69 61 6c 6f 67 52 |ocCommon|(DialogR|
|00002270| 65 66 20 74 68 65 44 69 | 61 6c 6f 67 2c 20 45 76 |ef theDi|alog, Ev|
|00002280| 65 6e 74 52 65 63 6f 72 | 64 20 2a 20 61 6e 45 76 |entRecor|d * anEv|
|00002290| 65 6e 74 2c 20 73 68 6f | 72 74 20 2a 20 2f 2a 20 |ent, sho|rt * /* |
|000022a0| 69 74 65 6d 48 69 74 20 | 2a 2f 29 0d 09 7b 0d 09 |itemHit |*/)..{..|
|000022b0| 73 77 69 74 63 68 20 28 | 61 6e 45 76 65 6e 74 2d |switch (|anEvent-|
|000022c0| 3e 77 68 61 74 29 0d 09 | 09 7b 0d 09 09 63 61 73 |>what)..|.{...cas|
|000022d0| 65 20 75 70 64 61 74 65 | 45 76 74 3a 0d 09 09 63 |e update|Evt:...c|
|000022e0| 61 73 65 20 61 63 74 69 | 76 61 74 65 45 76 74 3a |ase acti|vateEvt:|
|000022f0| 0d 09 09 09 2f 2f 20 09 | 55 70 64 61 74 65 20 6f |....// .|Update o|
|00002300| 72 20 61 63 74 69 76 61 | 74 65 20 66 6f 72 20 74 |r activa|te for t|
|00002310| 68 65 20 64 69 61 6c 6f | 67 20 77 69 6e 64 6f 77 |he dialo|g window|
|00002320| 3f 0d 09 09 09 69 66 20 | 28 74 68 65 44 69 61 6c |?....if |(theDial|
|00002330| 6f 67 20 3d 3d 20 28 44 | 69 61 6c 6f 67 52 65 66 |og == (D|ialogRef|
|00002340| 29 20 61 6e 45 76 65 6e | 74 2d 3e 6d 65 73 73 61 |) anEven|t->messa|
|00002350| 67 65 29 0d 09 09 09 09 | 62 72 65 61 6b 3b 0d 0d |ge).....|break;..|
|00002360| 09 09 09 2f 2f 09 6e 6f | 2c 20 66 61 6c 6c 20 74 |...//.no|, fall t|
|00002370| 68 72 6f 75 67 68 20 74 | 6f 20 48 61 6e 64 6c 65 |hrough t|o Handle|
|00002380| 45 76 65 6e 74 09 09 09 | 0d 09 09 09 0d 09 09 63 |Event...|.......c|
|00002390| 61 73 65 20 64 69 73 6b | 45 76 74 3a 0d 09 09 09 |ase disk|Evt:....|
|000023a0| 48 61 6e 64 6c 65 45 76 | 65 6e 74 28 61 6e 45 76 |HandleEv|ent(anEv|
|000023b0| 65 6e 74 29 3b 0d 09 09 | 09 72 65 74 75 72 6e 28 |ent);...|.return(|
|000023c0| 66 61 6c 73 65 29 3b 0d | 0d 09 09 64 65 66 61 75 |false);.|...defau|
|000023d0| 6c 74 3a 0d 09 09 09 62 | 72 65 61 6b 3b 09 09 0d |lt:....b|reak;...|
|000023e0| 09 09 7d 0d 0d 09 69 66 | 20 28 67 48 61 73 54 68 |..}...if| (gHasTh|
|000023f0| 72 65 61 64 4d 61 6e 61 | 67 65 72 29 09 09 2f 2f |readMana|ger)..//|
|00002400| 09 49 66 20 77 65 20 68 | 61 76 65 20 74 68 72 65 |.If we h|ave thre|
|00002410| 61 64 73 2c 20 6c 65 74 | 20 74 68 65 6d 20 72 75 |ads, let| them ru|
|00002420| 6e 21 0d 09 09 59 69 65 | 6c 64 54 6f 41 6e 79 54 |n!...Yie|ldToAnyT|
|00002430| 68 72 65 61 64 28 29 3b | 0d 0d 09 72 65 74 75 72 |hread();|...retur|
|00002440| 6e 20 66 61 6c 73 65 3b | 09 09 09 09 2f 2f 09 57 |n false;|....//.W|
|00002450| 65 20 64 69 64 6e d5 74 | 20 68 61 6e 64 6c 65 20 |e didn.t| handle |
|00002460| 74 68 65 20 65 76 65 6e | 74 0d 09 7d 0d 0d 0d 76 |the even|t..}...v|
|00002470| 6f 69 64 20 53 65 74 44 | 69 61 6c 6f 67 46 6f 6e |oid SetD|ialogFon|
|00002480| 74 41 6e 64 53 69 7a 65 | 20 28 20 44 69 61 6c 6f |tAndSize| ( Dialo|
|00002490| 67 52 65 66 20 74 68 65 | 44 69 61 6c 6f 67 2c 20 |gRef the|Dialog, |
|000024a0| 73 68 6f 72 74 20 66 6f | 6e 74 4e 75 6d 2c 20 73 |short fo|ntNum, s|
|000024b0| 68 6f 72 74 20 66 6f 6e | 74 53 69 7a 65 20 29 20 |hort fon|tSize ) |
|000024c0| 7b 0d 09 47 72 61 66 50 | 74 72 09 09 73 61 76 65 |{..GrafP|tr..save|
|000024d0| 50 6f 72 74 3b 0d 09 54 | 45 48 61 6e 64 6c 65 09 |Port;..T|EHandle.|
|000024e0| 74 65 68 20 3d 20 47 65 | 74 44 69 61 6c 6f 67 54 |teh = Ge|tDialogT|
|000024f0| 65 78 74 45 64 69 74 20 | 28 20 74 68 65 44 69 61 |extEdit |( theDia|
|00002500| 6c 6f 67 20 29 3b 0d 09 | 0d 09 47 65 74 50 6f 72 |log );..|..GetPor|
|00002510| 74 20 28 20 26 73 61 76 | 65 50 6f 72 74 20 29 3b |t ( &sav|ePort );|
|00002520| 0d 09 53 65 74 47 72 61 | 66 50 6f 72 74 4f 66 44 |..SetGra|fPortOfD|
|00002530| 69 61 6c 6f 67 20 28 20 | 74 68 65 44 69 61 6c 6f |ialog ( |theDialo|
|00002540| 67 20 29 3b 0d 09 0d 2f | 2f 09 73 65 74 20 75 70 |g );.../|/.set up|
|00002550| 20 74 68 65 20 70 6f 72 | 74 20 69 6e 66 6f 0d 09 | the por|t info..|
|00002560| 54 65 78 74 46 6f 6e 74 | 20 28 20 66 6f 6e 74 4e |TextFont| ( fontN|
|00002570| 75 6d 20 29 3b 0d 09 54 | 65 78 74 53 69 7a 65 20 |um );..T|extSize |
|00002580| 28 20 66 6f 6e 74 53 69 | 7a 65 20 29 3b 0d 0d 2f |( fontSi|ze );../|
|00002590| 2f 09 6e 6f 77 20 64 65 | 61 6c 20 77 69 74 68 20 |/.now de|al with |
|000025a0| 74 68 65 20 73 74 61 74 | 69 63 20 26 20 65 64 69 |the stat|ic & edi|
|000025b0| 74 20 74 65 78 74 20 69 | 73 73 75 65 73 0d 09 69 |t text i|ssues..i|
|000025c0| 66 20 28 20 74 65 68 20 | 21 3d 20 4e 55 4c 4c 20 |f ( teh |!= NULL |
|000025d0| 29 20 7b 0d 09 09 46 6f | 6e 74 49 6e 66 6f 09 66 |) {...Fo|ntInfo.f|
|000025e0| 3b 0d 09 09 54 45 50 74 | 72 09 09 70 54 65 78 74 |;...TEPt|r..pText|
|000025f0| 3b 0d 09 0d 09 09 47 65 | 74 46 6f 6e 74 49 6e 66 |;.....Ge|tFontInf|
|00002600| 6f 20 28 20 26 66 20 29 | 3b 0d 09 09 70 54 65 78 |o ( &f )|;...pTex|
|00002610| 74 20 3d 20 2a 74 65 68 | 3b 0d 09 09 70 54 65 78 |t = *teh|;...pTex|
|00002620| 74 2d 3e 74 78 46 6f 6e | 74 09 09 3d 20 61 70 70 |t->txFon|t..= app|
|00002630| 6c 46 6f 6e 74 3b 0d 09 | 09 70 54 65 78 74 2d 3e |lFont;..|.pText->|
|00002640| 74 78 53 69 7a 65 09 09 | 3d 20 66 6f 6e 74 53 69 |txSize..|= fontSi|
|00002650| 7a 65 3b 0d 09 09 70 54 | 65 78 74 2d 3e 6c 69 6e |ze;...pT|ext->lin|
|00002660| 65 48 65 69 67 68 74 09 | 3d 20 66 2e 61 73 63 65 |eHeight.|= f.asce|
|00002670| 6e 74 20 2b 20 66 2e 64 | 65 73 63 65 6e 74 20 2b |nt + f.d|escent +|
|00002680| 20 66 2e 6c 65 61 64 69 | 6e 67 3b 0d 09 09 70 54 | f.leadi|ng;...pT|
|00002690| 65 78 74 2d 3e 66 6f 6e | 74 41 73 63 65 6e 74 09 |ext->fon|tAscent.|
|000026a0| 3d 20 66 2e 61 73 63 65 | 6e 74 3b 0d 09 09 7d 0d |= f.asce|nt;...}.|
|000026b0| 09 0d 09 53 65 74 50 6f | 72 74 20 28 20 73 61 76 |...SetPo|rt ( sav|
|000026c0| 65 50 6f 72 74 20 29 3b | 0d 09 7d 0d 00 00 00 00 |ePort );|..}.....|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 01 00 00 00 02 41 | 00 00 01 41 00 00 00 72 |.......A|...A...r|
|00002710| 30 09 42 47 09 09 41 64 | 64 65 64 20 68 61 73 56 |0.BG..Ad|ded hasV|
|00002720| 49 41 43 6c 6f 63 6b 20 | 63 6f 6e 64 69 74 69 6f |IAClock |conditio|
|00002730| 0e 44 69 61 6c 6f 67 55 | 74 69 6c 73 2e 63 70 44 |.DialogU|tils.cpD|
|00002740| 02 00 00 00 54 45 58 54 | 4d 4d 43 43 01 00 ff ff |....TEXT|MMCC....|
|00002750| 00 00 54 45 58 54 4d 4d | 43 43 01 00 ff ff ff ff |..TEXTMM|CC......|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 a8 1c 2f 3a 00 00 | 26 4c 00 00 02 b3 2c 20 |..../:..|&L...., |
|00002780| 64 69 73 61 62 6c 65 64 | 20 69 6e 20 61 6c 6c 20 |disabled| in all |
|00002790| 62 75 69 6c 64 20 66 6f | 72 0d 23 09 09 09 09 09 |build fo|r.#.....|
|000027a0| 09 09 09 09 6e 6f 77 2e | 0d 23 09 09 3c 35 36 3e |....now.|.#..<56>|
|000027b0| 09 20 36 2f 31 38 2f 39 | 30 09 43 43 48 09 09 52 |. 6/18/9|0.CCH..R|
|000027c0| 65 6d 6f 76 65 64 20 6f | 6e 45 63 6c 69 70 73 65 |emoved o|nEclipse|
|000027d0| 20 63 6f 6e 64 69 74 69 | 6f 6e 61 6c 2e 20 20 41 | conditi|onal. A|
|000027e0| 64 64 65 64 20 65 63 6c | 69 70 73 65 44 65 62 75 |dded ecl|ipseDebu|
|000027f0| 67 20 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 0d 23 09 |g condit|ional.#.|
|00002800| 00 00 00 02 00 00 00 00 | 00 1e 00 2a 00 0e 03 57 |........|...*...W|
|00002810| 02 0a 00 2a 00 0e 03 5f | 02 49 00 00 00 00 00 00 |...*..._|.I......|
|00002820| 00 00 00 00 00 00 00 00 | 00 00 00 c1 b8 5b 4c c3 |........|.....[L.|
|00002830| 3f e5 32 30 00 04 00 00 | 00 01 00 00 00 00 ab 45 |?.20....|.......E|
|00002840| 34 a9 ab 45 34 a8 aa 81 | 1d 14 00 98 85 cc 00 02 |4..E4...|........|
|00002850| 00 04 00 08 1a 53 70 72 | 6f 63 6b 65 74 50 72 6f |.....Spr|ocketPro|
|00002860| 6a ba 53 70 72 6f 63 6b | 65 74 ba 4c 69 62 ba 00 |j.Sprock|et.Lib..|
|00002870| 0f 44 61 76 65 20 46 61 | 6c 6b 65 6e 62 75 72 67 |.Dave Fa|lkenburg|
|00002880| 00 01 38 00 0e 44 69 61 | 6c 6f 67 55 74 69 6c 73 |..8..Dia|logUtils|
|00002890| 2e 63 70 00 00 00 00 54 | 47 61 72 79 20 50 6f 77 |.cp....T|Gary Pow|
|000028a0| 65 6c 6c 20 69 73 20 61 | 20 62 75 67 20 66 69 6e |ell is a| bug fin|
|000028b0| 64 69 6e 67 20 67 6f 64 | 2e 20 46 69 78 20 61 6e |ding god|. Fix an|
|000028c0| 20 75 6e 69 74 69 61 6c | 69 7a 65 64 20 76 61 72 | unitial|ized var|
|000028d0| 69 61 62 6c 65 20 70 72 | 6f 62 6c 65 6d 20 69 6e |iable pr|oblem in|
|000028e0| 20 45 72 72 6f 72 41 6c | 65 72 74 2e 00 00 00 00 | ErrorAl|ert.....|
|000028f0| 48 00 09 4d 6f 6e 61 63 | 6f 00 00 00 00 00 00 00 |H..Monac|o.......|
|00002900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002910| 00 00 00 00 03 00 04 00 | 58 00 04 01 cd 02 63 00 |........|X.....c.|
|00002920| 58 00 04 01 cd 02 63 ad | 0e d0 c4 00 00 0b 18 00 |X.....c.|........|
|00002930| 00 0b 18 00 00 0a 12 01 | 00 00 00 00 04 00 01 00 |........|........|
|00002940| 01 00 00 01 00 00 00 02 | 41 00 00 01 41 00 00 00 |........|A...A...|
|00002950| 72 00 df 47 1c 12 00 00 | 00 00 1c 00 72 00 02 4d |r..G....|....r..M|
|00002960| 50 53 52 00 02 00 1a 63 | 6b 69 64 00 00 00 3e 4d |PSR....c|kid...>M|
|00002970| 57 42 42 00 00 00 4a 07 | d1 ff ff 00 00 00 00 00 |WBB...J.|........|
|00002980| 00 00 00 03 f0 ff ff 00 | 00 00 06 00 00 00 00 03 |........|........|
|00002990| ed ff ff 00 00 00 ed 00 | 00 00 00 00 80 ff ff 00 |........|........|
|000029a0| 00 00 28 00 00 00 00 03 | f0 ff ff 00 00 01 39 00 |..(.....|......9.|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+